﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;

namespace Gnosis.Alexandria.Model.Commands
{
    public class AdHocCommandBuilder
        : CommandBuilderBase
    {
        public AdHocCommandBuilder(string text)
            : base(null)
        {
            Append(text);
        }

        public AdHocCommandBuilder(string text, IDictionary<string, object> parameters)
            : base(null)
        {
            Append(text);

            if (parameters != null)
                foreach (KeyValuePair<string, object> pair in parameters)
                    AddParameter(pair.Key, pair.Value);
        }
    }
}
